home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{7A0C53E3-EB00-11D0-8083-00C0F6A06F60}#1.0#0"; "SCROLLX.OCX"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 6804
- ClientLeft = 48
- ClientTop = 336
- ClientWidth = 9168
- LinkTopic = "Form1"
- ScaleHeight = 6804
- ScaleWidth = 9168
- StartUpPosition = 3 'Windows Default
- Begin SCROLLXLib.ScrollX ScrollX1
- Height = 4212
- Left = 1320
- TabIndex = 0
- Top = 960
- Width = 6732
- _Version = 65536
- _ExtentX = 11874
- _ExtentY = 7429
- _StockProps = 0
- DataCursorHandle= "Form1.frx":0000
- AxisHandle = "Form1.frx":009A
- AxisLableHandle = "Form1.frx":00C4
- AxisMin = "Form1.frx":00EE
- AxisMax = "Form1.frx":0128
- ScaleEnable = "Form1.frx":0162
- AxisEnable = "Form1.frx":0184
- AxisInterceptTrack= "Form1.frx":01AE
- AxisLabelsEnable= "Form1.frx":01D8
- AxisScaleMode = "Form1.frx":0202
- AxisIntercept = "Form1.frx":022C
- AxisColor = "Form1.frx":0266
- AxisLineWidth = "Form1.frx":0290
- AxisMinorTicks = "Form1.frx":02BA
- AxisMajorTickInterval= "Form1.frx":02E4
- AxisTickStyle = "Form1.frx":031E
- AxisAutoAxis = "Form1.frx":0348
- AxisLabelPos = "Form1.frx":0372
- AxisLabelTimeBase= "Form1.frx":039C
- AxisLabelAutoUpdate= "Form1.frx":03C6
- AxisLabelStartHour= "Form1.frx":03F0
- AxisLabelStartMin= "Form1.frx":041A
- AxisLabelStartSec= "Form1.frx":0444
- AxisLabelDecs = "Form1.frx":046E
- AxisLabelColor = "Form1.frx":0498
- AxisLabelFont = "Form1.frx":04C2
- AxisLabelFontStyle= "Form1.frx":04F4
- AxisLabelFontSize= "Form1.frx":051E
- AxisNumericStyle= "Form1.frx":0548
- AxisTitleString = "Form1.frx":0572
- AxisTitleFont = "Form1.frx":0590
- AxisLabelStrings= "Form1.frx":05BD
- NumAxisLabelStrings= "Form1.frx":05DB
- AxisLabelStringsEnable= "Form1.frx":0605
- AxisLabelStringsStart= "Form1.frx":062F
- AxisTitleColor = "Form1.frx":0659
- AxisTitleFontStyle= "Form1.frx":1DB87
- AxisTitleFontSize= "Form1.frx":1DBB1
- AxisTitlePos = "Form1.frx":1DBDB
- AxisGridEnable = "Form1.frx":1DC05
- AxisGridColor = "Form1.frx":1DC2F
- AxisGridLineWidth= "Form1.frx":1DC59
- AxisGridLineStyle= "Form1.frx":1DC83
- AxisGridType = "Form1.frx":1DCAD
- TitleString = "Form1.frx":1DCD7
- TitleFont = "Form1.frx":1DD03
- TitleColor = "Form1.frx":1DD2F
- TitleFontStyle = "Form1.frx":1DD55
- TitleFontSize = "Form1.frx":1DD7B
- TitlePos = "Form1.frx":1DDA1
- PlotHandle = "Form1.frx":1DDC7
- DataSet = "Form1.frx":1DDF1
- SDataNumPlotPoints= "Form1.frx":1DE1B
- SDataEnable = "Form1.frx":1DE45
- SDataName = "Form1.frx":1DE6F
- SDataNumGroups = "Form1.frx":1DE92
- SDataType = "Form1.frx":1DEBC
- SPlotType = "Form1.frx":1DEE6
- SPlotDataset = "Form1.frx":1DF10
- SPlotRefAxes = "Form1.frx":1DF3A
- SPlotObjectOutlineColor= "Form1.frx":1DF64
- ScrollStepMode = "Form1.frx":1DF8E
- ScrollSweepLineColor= "Form1.frx":1DFB8
- ScrollRelReset = "Form1.frx":1DFE2
- ScrollRelSize = "Form1.frx":1E01C
- ScrollSampleInterval= "Form1.frx":1E056
- ScrollXYNumPoints= "Form1.frx":1E090
- ScrollDirection = "Form1.frx":1E0BA
- ScrollBarWidth = "Form1.frx":1E0E4
- AxisGridUpdatePeriod= "Form1.frx":1E11E
- AxisGridUpdateMode= "Form1.frx":1E158
- ScrollHistoryBufferSize= "Form1.frx":1E182
- ScrollAlarmUpdatePeriod= "Form1.frx":1E1AC
- ScrollAlarmUpdateMode= "Form1.frx":1E1E6
- ScrollAlarmHorizontal= "Form1.frx":1E210
- SDataSimulationMode= "Form1.frx":1E23A
- ScrollNormalAlarmColor= "Form1.frx":1E264
- ScrollLowAlarmColor= "Form1.frx":1E28E
- ScrollHighAlarmColor= "Form1.frx":1E2B8
- ScrollLowLowAlarmColor= "Form1.frx":1E2E2
- ScrollHighHighAlarmColor= "Form1.frx":1E30C
- ScrollHighHighAlarmEnable= "Form1.frx":1E336
- ScrollLowAlarmEnable= "Form1.frx":1E360
- ScrollLowLowAlarmEnable= "Form1.frx":1E38A
- ScrollHighAlarmEnable= "Form1.frx":1E3B4
- ScrollAlarmMarksEnable= "Form1.frx":1E3DE
- ScrollSetpointEnable= "Form1.frx":1E408
- ScrollHighHighAlarmValue= "Form1.frx":1E432
- ScrollHighAlarmValue= "Form1.frx":1E46C
- ScrollLowAlarmValue= "Form1.frx":1E4A6
- ScrollLowLowAlarmValue= "Form1.frx":1E4E0
- ScrollSetpointValue= "Form1.frx":1E51A
- SDataXData0 = "Form1.frx":1E554
- SDataXData1 = "Form1.frx":1E56E
- SDataXData2 = "Form1.frx":1E588
- SDataXData3 = "Form1.frx":1E5A2
- SDataYData0 = "Form1.frx":1E5BC
- SDataYData1 = "Form1.frx":1E5D6
- SDataYData2 = "Form1.frx":1E5F0
- SDataYData3 = "Form1.frx":1E60A
- ScrollLineColor0= "Form1.frx":1E624
- ScrollLineColor1= "Form1.frx":1E6BE
- ScrollLineColor2= "Form1.frx":1E758
- ScrollLineColor3= "Form1.frx":1E7F2
- ScrollLineStyle0= "Form1.frx":1E88C
- ScrollLineStyle1= "Form1.frx":1E926
- ScrollLineStyle2= "Form1.frx":1E9C0
- ScrollLineStyle3= "Form1.frx":1EA5A
- ScrollLineThickness0= "Form1.frx":1EAF4
- ScrollLineThickness1= "Form1.frx":1EB8E
- ScrollLineThickness2= "Form1.frx":1EC28
- ScrollLineThickness3= "Form1.frx":1ECC2
- ScrollTagName0 = "Form1.frx":1ED5C
- ScrollTagName1 = "Form1.frx":1EE4C
- ScrollTagName2 = "Form1.frx":1EF3C
- ScrollTagName3 = "Form1.frx":1F02C
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim rData1(4) As Double
- Private Sub Form_Load()
- ScrollX1.SDataEnable(0) = True ' enable the 1st data set
- ScrollX1.SPlotType(0) = SCROLLING_LINE_GRAPH
- ScrollX1.SDataNumGroups(0) = 4 ' four channels of data
- rData1(0) = 2
- rData1(1) = 4
- rData1(2) = 6
- rData1(3) = 8
- 'axis
- ScrollX1.AxisMax(X_AXIS1) = 25# ' x axis from 0 - 25
- ScrollX1.AxisEnable(X_AXIS2) = True 'enable the second x axis
- ScrollX1.AxisEnable(Y_AXIS2) = True 'enable the second x axis
- ScrollX1.AxisMajorTickInterval(X_AXIS1) = 5# 'label every 5 units
- 'alarm updating
- ScrollX1.ScrollAlarmMarksEnable(0) = True 'enable alarm marks
- ScrollX1.ScrollLowAlarmEnable(0) = True 'enable lo alarm line
- ScrollX1.ScrollHighAlarmEnable(0) = True 'enable hi alarm line
- ScrollX1.ScrollSetpointEnable(0) = True 'enable set point line
- 'title
- ScrollX1.TitleString(TITLE1) = "Scroll Graph" 'graph title
- 'window
- ScrollX1.WindowBackgroundColor = RGB_LIGHTBLUE 'background color
- ScrollX1.WindowBorderStyle = RC_HIGH
- 'use internal timer
- ScrollX1.EnableInternalTimer = True
- End Sub
- Private Sub ScrollX1_OnInternalTimer()
- Dim i As Integer
- For i = 0 To ScrollX1.SDataNumGroups(0) - 1
- rData1(i) = rData1(i) + 0.5 * (0.5 - Rnd)
- Next i
- Call ScrollX1.UpdateDynData(0, rData1(0))
- End Sub
-